home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / initscripts.postrm < prev    next >
Encoding:
Text File  |  2012-03-27  |  2.4 KB  |  84 lines

  1. #! /bin/sh
  2. #
  3. # initscripts postrm
  4. #
  5.  
  6. set -e
  7.  
  8. case "$1" in
  9.   purge)
  10.     #
  11.     # Remove abandoned conffiles
  12.     #
  13.     rm -f /etc/init.d/bootclean
  14.     rm -f /etc/init.d/bootclean.dpkg-old
  15.     rm -f /etc/init.d/bootclean.sh
  16.     rm -f /etc/init.d/bootclean.sh.dpkg-old
  17.  
  18.     #
  19.     # Remove configuration files
  20.     #
  21.     rm -f \
  22.         /etc/default/rcS \
  23.         /etc/nologin \
  24.         /etc/motd.tail \
  25.         /etc/motd.static \
  26.         /etc/motd
  27.  
  28.     #
  29.     # Remove state files
  30.     #
  31.     rm -f /var/lib/initscripts/nologin
  32.  
  33.     #
  34.     # Remove run time state files
  35.     #
  36.     rm -f /var/run/motd
  37.  
  38.     #
  39.     # Remove log files
  40.     #
  41.     rm -f \
  42.         /var/log/dmesg \
  43.         /var/log/boot \
  44.         /var/log/fsck/checkroot \
  45.         /var/log/fsck/checkfs
  46.  
  47.     # Remove rc symlinks in the reverse dependency order they were
  48.     # inserted
  49.     update-rc.d stop-bootlogd         remove >/dev/null || exit $?
  50.     update-rc.d stop-bootlogd-single  remove >/dev/null || exit $?
  51.     update-rc.d rmnologin             remove >/dev/null || exit $?
  52.     update-rc.d rc.local              remove >/dev/null || exit $?
  53.     update-rc.d bootlogs              remove >/dev/null || exit $?
  54.     update-rc.d single                remove >/dev/null || exit $?
  55.     update-rc.d killprocs             remove >/dev/null || exit $?
  56.     update-rc.d sendsigs              remove >/dev/null || exit $?
  57.     update-rc.d umountnfs.sh          remove >/dev/null || exit $?
  58.     update-rc.d umountfs              remove >/dev/null || exit $?
  59.     update-rc.d umountroot            remove >/dev/null || exit $?
  60.     update-rc.d reboot                remove >/dev/null || exit $?
  61.     update-rc.d halt                  remove >/dev/null || exit $?
  62.     update-rc.d urandom               remove >/dev/null || exit $?
  63.     update-rc.d bootmisc.sh           remove >/dev/null || exit $?
  64.     update-rc.d mountnfs-bootclean.sh remove >/dev/null || exit $?
  65.     update-rc.d mountnfs.sh           remove >/dev/null || exit $?
  66.     update-rc.d mountoverflowtmp      remove >/dev/null || exit $?
  67.     update-rc.d mountall-bootclean.sh remove >/dev/null || exit $?
  68.     update-rc.d mountall.sh           remove >/dev/null || exit $?
  69.     update-rc.d checkfs.sh            remove >/dev/null || exit $?
  70.     update-rc.d mtab.sh               remove >/dev/null || exit $?
  71.     update-rc.d checkroot.sh          remove >/dev/null || exit $?
  72.     update-rc.d bootlogd              remove >/dev/null || exit $?
  73.     update-rc.d mountdevsubfs.sh      remove >/dev/null || exit $?
  74.     update-rc.d hostname.sh           remove >/dev/null || exit $?
  75.     update-rc.d mountkernfs.sh        remove >/dev/null || exit $?
  76.  
  77.     # Remove /dev/pts and /dev/shm ?
  78.     ;;
  79. esac
  80.  
  81.  
  82.  
  83. :
  84.